# -*- encoding:UTF-8 -*-
from turbogears import redirect
import cherrypy
from chamachama import model

class Validacao:
    @classmethod
    def validarLogin( self ):
        try:
            if cherrypy.session.get( 'logado' ):
                return True
            else:
                return False
        except:
            return False